/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2024-03-15 11:04:27
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2024-03-15 11:06:50
 */

import request from '@projectName/utils/request'

export function ruleInitList(data) {
  return request({
    url: '/officialaccount/msg-reply-rule/index',
    method: 'get',
    params: data
  })
}

export function ruleGetView(id) {
  return request({
    url: `/officialaccount/msg-reply-rule/${id}`,
    method: 'get'
  })
}

export function ruleItemCreate(data) {
  return request({
    url: '/officialaccount/msg-reply-rule/create',
    method: 'post',
    data: data
  })
}

export function ruleItemUpdate(id, data) {
  return request({
    url: `/officialaccount/msg-reply-rule/update/${id}`,
    method: 'put',
    data: data
  })
}

export function ruleItemDelete(id) {
  return request({
    url: `/officialaccount/msg-reply-rule/delete/${id}`,
    method: 'delete'
  })
}
